﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DevExpress.Xpo;

namespace WROA.Models.Entitys
{
    public class ApplyMeeting : XPObject
    {
        private DateTime am_time;
        [DbType("datetime")]
        public DateTime Am_time { get; set; }

        private Users user;
        [Association("ApplyMeetingUser")]
        public Users User { get; set; }
        
        private Flow flow;
        [Association("ApplyMeetingFlow")]
        public Flow Flow { get; set; }

        private string am_htmldata;
        [DbType("nvarchar(50)")]
        public string Am_htmldata { get; set; }

        private File file;
        public File File { get; set; }

        private Procedure procedure;
        [Association("ApplyMeetingProcedure")]
        public Procedure Procedure
        {
            get { return procedure; }
            set { procedure = value; }
        }
        
        private string am_state;
        [DbType("nvarchar(50)")]
        public string Am_state { get; set; }

        
        private string am_isagree;
        [DbType("nvarchar(50)")]
        public string Am_isagree { get; set; }

        [Association("MeetingApproveApplyMeeting", typeof(MeetingApprove))]
        public XPCollection meetingapproves
        {
            get
            {
                return GetCollection("meetingapproves");
            }
        }

        private MeetingData meetingdata;
        public MeetingData Meetingdata
        {
            get { return meetingdata; }
            set { meetingdata = value; }
        }
    }
}